import React from 'react'
import { graphql } from 'gatsby'

const PageQuery = ( {data} ) => {

  return (
    <div>
      <p>{data.site.siteMetadata.author}</p>
      <p>{data.site.siteMetadata.title}</p>
    </div>
  )
}

export default PageQuery

export const query = graphql`
  query MyQuery {
    site {
      siteMetadata {
        author
        title
      }
    }
  }
`
